#!/bin/bash
echo "Type in the user name"
read user
if
	grep $user /etc/passwd > /tmp/null
#	env | grep $user
	who | grep $user
then
	echo "$user has loggin in the system."
	cp /tmp/null tmp1
	rm /tmp/null
else
	echo "$user has not logged in the system."
fi
